import Layout from '@/layout/index'

export default [
  {
    path: '/safe',
    sort: 2,
    meta: {
      title: '访问控制',
      icon: 'view',
      auth: 'Auth'
    },
    component: Layout,
    redirect: { name: 'SafeAdmin' },
    children: [
      {
        path: 'admin',
        name: 'SafeAdmin',
        meta: {
          title: '用户',
          auth: 'Auth'
        },
        component: () => import('../views/safe/admin')
      },
      {
        path: 'admin/:id',
        name: 'SafeAdminEdit',
        meta: {
          title: '管理员',
          hidden: true,
          auth: 'Auth'
        },
        component: () => import('../views/safe/admin-edit')
      },
      {
        path: 'group',
        name: 'SafeAdminGroup',
        meta: {
          title: '用户组',
          auth: 'Auth'
        },
        component: () => import('../views/safe/group')
      },
      {
        path: 'group/:id',
        name: 'SafeGroupEdit',
        meta: {
          title: '用户组',
          hidden: true,
          auth: 'Auth'
        },
        component: () => import('../views/safe/group-edit')
      },
    ]
  },
]
